223 |
1Z0-144 |
Which of the following built-in packages supports dynamic SQL?
|
|
DBMS_SQL |
DBMS_SCHEDULER
|
DBMS_MONITOR |
DBMS_CRYPTO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
222 |
1Z0-144 |
You work as an Application Developer for Tech-Mart Inc. The company uses an Oracle database. The
database contains a function named Calc_Sal. You want to make some changes in the executable part of the
function. What will you do to accomplish this? Each correct answer represents a complete solution. Choose
two. |
|
Drop the function and create a new one.
|
Use the MODIFY FUNCTION statement.
|
Use the CREATE OR REPLACE FUNCTION statement.
|
Use the ALTER FUNCTION statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
221 |
1Z0-144 |
You work as a Database Administrator for Hitech Inc. The company uses Oracle as its database. The database
contains a table named Employee, which in turn have a view named ename. There is some issue with the
ename view. As a DBA, you need to repair and compile the view. You issue the ALTER view ename COMPILE
statement, however, the compilation failed. Which of the following will you use to accomplish the task? Each
correct answer represents a part of the solution. Choose two. |
|
The SHOW ERROR command
|
The DESC command
|
The DBA_OBJECTS view
|
The DBA_DEPENDENCIES view
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4 |
|
MC |
|
|
220 |
1Z0-144 |
One of the users creates the following PL/SQL object. What type of PL/SQL object is this considered as?
|
|
A package body
|
A trigger
|
A type specification
|
A package specification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
219 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. The company uses an Oracle database. Currently, the
Oracle server uses the timestamp mode for managing remote dependencies among objects. You want the
Oracle server to use the signature mode. You also want to ensure that the signature mode is applicable to all
sessions in the database. What will you do to accomplish this? Each correct answer represents a complete
solution.
Choose two. |
|
Edit the init.ora file and remove the REMOTE_DEPENDENCIES_MODE parameter.
|
Set the REMOTE_DEPENDENCIES_MODE parameter to SIGNATURE by using the ALTER SESSION
statement |
Set the REMOTE_DEPENDENCIES_MODE parameter to SIGNATURE by using the ALTER SYSTEM
statement.
|
Edit the init.ora file and set the REMOTE_DEPENDENCIES_MODE parameter to SIGNATURE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
218 |
1Z0-144 |
You want to send an email from inside the PL/SQL code. You use the UTL_MAIL.SEND procedure for this.
Which of the following is the valid syntax that you will insert into the PL/SQL code to accomplish the task?
|
|
UTL_MAIL.SEND (subject, receiver, carbon_copy, blind_carbon_copy, subject, message.sender,
mime_type, priority);
|
UTL_MAIL.SEND (sender, receiver, carbon_copy, blind_carbon_copy, mime_type, subject, message,
priority); |
UTL_MAIL.SEND (sender, receiver, carbon_copy, blind_carbon_copy, subject, message, mime_type,
priority); |
UTL_MAIL.SEND (subject, sender, receiver, carbon_copy, blind_carbon_copy, subject, message,
mime_type, priority); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
217 |
1Z0-144 |
You have written the following PL/SQL code: |
217-queplsql.png |
Place at least one statement between the BEGIN and END statements of the PL/SQL block.
|
Remove the semicolon.
|
Remove the forward slash (/).
|
Remove the SQL*Plus SERVEROUTPUT variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
216 |
1Z0-144 |
Which of the following are the benefits of PL/SQL? Each correct answer represents a complete solution.
Choose all that apply. |
|
In PL/SQL, the statements of the block are sent line by line, one at a time to the Oracle ser ver.
|
PL/SQL is a high-performance transaction-processing language.
|
PL/SQL supports all SQL datatypes and all SQL functions.
|
PL/SQL blocks can be named and stored in the Oracle server and reused as requi red in another PL/SQL
program. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,3,4 |
|
MC |
|
|
215 |
1Z0-144 |
In which of the following sections of a PL/SQL block a user-defined exception can be raised?
|
|
Declarative section
|
Comments section
|
Exception section
|
Executable section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
214 |
1Z0-144 |
Which of the following is a data manipulation language (DML) statement?
|
|
DESCRIBE |
EXPLAIN PLAN
|
SAVEPOINT |
TRUNCATE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
213 |
1Z0-144 |
You work as an Application Developer for Dolliver Inc. |
213-queplsql.png |
It marks a database user as logged on to the database before an audit statement is issued.
|
It invokes the Login_Pro procedure after a database user logs on to the database and records the
username of the database user in the Audit_Records table. |
The trigger fails to execute.
|
It invokes the Login_Pro procedure before a database user logs on to the database and records the
username of the database user in the Audit_Records table. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
212 |
1Z0-144 |
Martha works as an Application Developer for Z-Tech Inc. The company uses an Oracle database. The
database contains a table named Orders. Martha wants to create a database trigger on the Orders table. She
wants the trigger to fire after an UPDATE operation is performed on the Orders table. She also wants the
trigger to fire for each row updated in the Orders table. Which of the following options will she use when
creating the trigger? Each correct answer represents a part of the solution. Choose two. |
|
AFTER UPDATE
|
BEFORE UPDATE
|
FOR EACH ROW
|
ROW |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
211 |
1Z0-144 |
Which of the following is a valid identifier?
|
|
USER-ID
|
user-id
|
user_id
|
user id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
210 |
1Z0-144 |
Which of the following tasks a user cannot perform with the help of the data manipulation language (DML)
statement? |
|
Establish properties for a transaction.
|
Add new rows of data into a table or view with the help of the INSERT statement.
|
View the execution plan for a SQL statement with the help of the EXPLAIN PLAN statement.
|
Retrieve or fetch data from one or more tables or views with the help of the SELECT statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
209 |
1Z0-144 |
Andrew works as an Application Developer for Z-Tech Inc. The company uses an Oracle database. Andrew
creates a trigger named Log_Trigger. The trigger executes whenever a database user logs on to the database.
Which of the following types of triggers has Andrew created? |
|
INSTEAD OF trigger
|
Application trigger
|
System event trigger
|
Database trigger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
208 |
1Z0-144 |
Which of the following are NOT true about the scope rules for PL/SQL exceptions? Each correct answer
represents a complete solution. Choose all that apply |
|
An exception can be declared more than once in a single block.
|
The scope of an exception declared within a block is global for all of its sub-blocks. |
The scope of an exception declared within a block is local for the block.
|
When a global exception is declared again within a sub-block, the global declaration takes priority over the
local declaration. |
The parent block can also refer to the exceptions declared in its sub-blocks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,4,5 |
|
MC |
|
|
207 |
1Z0-144 |
In which of the following cursors are fetches and DML operations not required to be forward sequential only?
|
|
Implicit cursor
|
Explicit cursor
|
Scrollable cursor
|
Recursive cursor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
206 |
1Z0-144 |
Which of the following packages provides subprograms that filter the user input and validate it to avoid SQL
injection? |
|
DBMS_ALERT
|
DBMS_ASSERT
|
DBMS_MONITOR
|
DBMS_TRACE
|
DBMS_REPAIR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
205 |
1Z0-144 |
Which of the following statements are true about the RAISE statement? Each correct answer represents a
complete solution. Choose three. |
|
It can be used to raise pre-defined exceptions.
|
It is never used to raise pre-defined exceptions.
|
It stops normal execution of a PL/SQL block.
|
It is used to raise user-defined exceptions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3,4 |
|
MC |
|
|
204 |
1Z0-144 |
Which of the following statements about the INSTEAD OF clause of a trigger are true? Each correct answer
represents a complete solution. Choose two. |
|
The INSTEAD OF clause identifies the table associated with the trigger.
|
The INSTEAD OF clause specifies that the trigger is a statement trigger.
|
The INSTEAD OF clause identifies the event associated with the trigger.
|
The INSTEAD OF clause identifies the view associated with the trigger.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
203 |
1Z0-144 |
You work as an Application Developer for Tech-Mart Inc. The company uses an Oracle database. You want to
create automated, unattended scheduling of PL/SQL program units. Which of the following Oracle supplied
packages will you use to accomplish this? |
|
DBMS_DDL
|
DBMS_JOB
|
DBMS_SQL
|
DBMS_OUTPUT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
202 |
1Z0-144 |
Which of the following are NOT features of an exception in PL/SQL? Each correct answer represents a
complete solution. Choose all that apply. |
|
User defined exceptions must be raised explicitly by RAISE statements.
|
Exceptions declared in a block are considered local to that block and global to all its sub- blocks.
|
It is possible to declare an exception twice in the same block.
|
User defined exceptions may or may not be given names.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
201 |
1Z0-144 |
Sam works as a Database Administrator for SamTech Inc. He writes the following statement in the PL/SQL
block:
DECLARE
New_Cons CONSTANT NUMBER := 8.2;
What will happen when this statement is executed? |
|
A constant will be declared and a value will be assigned to it.
|
An index identifier will be declared and a value will be assigned to it.
|
An error will occur.
|
A composite variable will be declared and a value will be assigned to it. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
200 |
1Z0-144 |
You want to declare a REF CURSOR variable that can relate to only those queries that are typecompatible.
Which of the following will you use to accomplish the task?
|
|
TYPE IS REF CURSOR cur;
|
TYPE cur IS REF CURSOR;
|
TYPE IS REF CURSOR cur RETURN students%ROWTYPE;
|
TYPE cur IS REF CURSOR RETURN students%ROWTYPE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
199 |
1Z0-144 |
What are the two subtypes of the IF conditional statement in PL/SQL?
|
|
if-then-endif and if-then-else
|
if-then-else and if-then-elseif
|
if-then-else and if-then-elseif-endif
|
if-then-else and if-then-elseif-then-else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
198 |
1Z0-144 |
Oracle supports all of the following types of collections except for which one?
|
|
VARRAYS |
Nested array
|
Nested table
|
Associative array
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
197 |
1Z0-144 |
What are the two variables supported by PL/SQL?
|
|
Explicit and implicit variables
|
Scalar and composite variables
|
Primary and default variables
|
Scalar and user-defined variables
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
196 |
1Z0-144 |
Which of the following identifiers can include any printable characters, including spaces?
|
|
Quoted identifiers
|
Predefined identifiers
|
Valid identifiers
|
Invalid identifiers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
195 |
1Z0-144 |
Which of the following types of message output contains a chronological log of errors, initialization parameter
settings, and administration operations, and also records values for overwritten control file records? |
|
RMAN messages
|
alert_SID.log
|
sbtio.log
|
Oracle trace file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
194 |
1Z0-144 |
Which of the following exceptions is raised when a user tries to divide a number by zero?
|
|
VALUE_ERROR
|
OUT_OF_RANGE
|
ZERO_DIVIDE
|
SELF_IS_NULL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
193 |
1Z0-144 |
Which of the following statements is used to insert, update, or delete bulk data?
|
|
FOR Loop statement
|
BULK COLLECT INTO statement
|
BULK statement
|
FORALL statement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
192 |
1Z0-144 |
All of the following can be the causes of raising an exception except for which one?
|
|
A throw statement has executed.
|
An asynchronous exception has occurred.
|
An abnormal execution condition has been synchronously detected.
|
A catch statement has executed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
191 |
1Z0-144 |
From which of the following programming languages are the features of PL/SQL programming fetched?
|
|
C programming
|
Java programming
|
C programming
|
Ada programming
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
190 |
1Z0-144 |
Which of the following built-in packages supports dynamic SQL?
|
|
DBMS_SQL
|
DBMS_SCHEDULER
|
DBMS_MONITOR
|
DBMS_CRYPTO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
189 |
1Z0-144 |
Which of the following is ideal for querying a database table or view?
|
|
Range FOR Loop statement
|
Cursor FOR Loop statement
|
While Loop statement
|
Simple Loop statement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
188 |
1Z0-144 |
Which of the following is a sequentially control statement?
|
|
GOTO |
LOOP |
EXIT |
CASE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
187 |
1Z0-144 |
Which of the following errors maps to the INVALID_CURSOR predefined exception in PL/SQL?
|
|
ORA-10100 |
ORA-10001
|
ORA-01000
|
ORA-01001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
186 |
1Z0-144 |
In which of the following naming methods are the connect identifiers stored in a localized configuration file
named tnsnames.ora? |
|
Oracle Names
|
Directory naming
|
Local naming
|
External naming
|
Host naming
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
185 |
1Z0-144 |
Which of the following cannot be created and stored in the database?
|
|
NESTED TABLE
|
VARRAY |
RECORD |
ASSOCIATIVE ARRAY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
184 |
1Z0-144 |
Which of the following correctly represents floating point number literals?
|
|
F6.34
|
6.34
|
6.F34
|
6.34F
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
183 |
1Z0-144 |
Which of the following clauses indicates that a function is cached only once in the SGA and is available across
sessions?
|
|
PIPELINED |
PARALLEL_ENABLE
|
RESULT_CACHE |
DETERMINISTIC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
182 |
1Z0-144 |
Which of the following is another name for bind variable?
|
|
User-defined variable
|
System variable
|
Session-level variable
|
Default variable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
181 |
1Z0-144 |
Which of the following exceptions is raised when the value of amount plus the offset exceeds the maximum
size of LOB allowed by the database?
|
|
Procedure |
Function |
Cursor |
Access |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
180 |
1Z0-144 |
Which of the following errors is raised when placeholders are put inside the overriding signature of an INSERT
statement? |
|
ORA-01006
|
ORA-06502
|
ORA-00928
|
PLS-00049
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
179 |
1Z0-144 |
All of the following statements are true about an explicit cursor except for which one?
|
|
An explicit cursor can be declared in any declaration section of a PL/SQL block.
|
A cursor name is not a PL/SQL variable.
|
The name of an explicit cursor can be up to 30 characters in length.
|
Values can be assigned to a cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
178 |
1Z0-144 |
All of the following statements about a named system exception are true except for which one?
|
|
These exceptions are caught by referencing the standard name within an exception- handling routine.
|
These exceptions are declared explicitly.
|
These exceptions are raised when a predefined Oracle error occurs.
|
NO_DATA_FOUND is an example of a named system exception.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
177 |
1Z0-144 |
Which of the following terms is used for the declaration section of the named-block programs?
|
|
Wrapper |
Header |
Declarer |
Cursor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
176 |
1Z0-144 |
Which of the following is the first step in using a cursor?
|
|
Open the cursor
|
Fetch from the cursor
|
Define the cursor
|
Close the cursor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
175 |
1Z0-144 |
All of the following statements about the RAISE_APPLICATION_ERROR procedure are true except for which
one? |
|
RAISE_APPLICATION_ERROR is used to create a unique id for a user-defined exception.
|
RAISE_APPLICATION_ERROR raises an exception and handles it.
|
RAISE_APPLICATION_ERROR is a built-in procedure in oracle which is used to display the userdefined
error messages along with the error number. |
Whenever a message is displayed using RAISE_APPLICATION_ERROR, all previous transactions which
are not committed within the PL/SQL block are rolled back automatically.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
174 |
1Z0-144 |
What are the two types of CASE statements in PL/SQL?
|
|
Simple and compound
|
Simple and iterative
|
Direct and indirect
|
Simple and searched
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
173 |
1Z0-144 |
Which of the following correctly represents the default format mask for dates in PL/SQL programming?
|
|
DD-MON-YY
|
MON-DD-YY
|
MON-DD-YYYY
|
DD-MON-YYYY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
172 |
1Z0-144 |
Which of the following operators allows users to check whether a VARRAY or NESTED TABLE collection is a
subset of a mirrored datatype?
|
|
SUBMULTISET |
MEMBER OF
|
EMPTY |
ISA SET
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
171 |
1Z0-144 |
All of the following statements are true about an exception except for which one?
|
|
The scope of an exception declared within a block is global for the block and local for all of its sub blocks.
|
The sub-block can refer to the global exception only when the exception name is qualified with the block
label (block_label.exception_name). |
When a global exception is declared again within a sub-block, the local declaration takes priority over the
global declaration. |
An exception cannot be declared more than once in a single block.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
170 |
1Z0-144 |
Which of the following is NOT a part of a PL/SQL exception?
|
|
A return value
|
A message
|
Type of exception
|
An Error Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
169 |
1Z0-144 |
Which of the following functions is used to convert a cursor number to a weakly-typed cursor variable?
|
|
DBMS_SQL.TO_OPEN_CURSOR
|
DBMS_SQL.TO_REFCURSOR
|
DBMS_SQL.TO_CURSOR
|
DBMS_SQL.OPEN_CURSOR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
168 |
1Z0-144 |
Which of the following PL/SQL built-in functions is used to find the position where a substring starts in a string?
|
|
LPAD |
INITCAP |
INSTR |
CHR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
167 |
1Z0-144 |
Which of the following terms is given by developers to PL/SQL 2.x programming?
|
|
Black Art
|
Gray Art
|
White Art
|
Blue Art
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
166 |
1Z0-144 |
All are lexical units except which of the following?
|
|
Comments |
Variables |
Literals |
Identifiers |
Delimiters |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
165 |
1Z0-144 |
In which of the following places is the record variable NOT allowed?
|
|
In the VALUES clause of an INSERT statement.
|
In the INTO subclause of a RETURNING clause.
|
On the right side of the SET clause in an UPDATE statement.
|
In a SELECT list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
164 |
1Z0-144 |
Which of the following is NOT a supported transaction control statement?
|
|
SAVEPOINT |
ROLLBACK |
COMMIT |
CHECKPOINT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
163 |
1Z0-144 |
Which of the following is another name for an unnamed program unit in PL/SQL?
|
|
Pseudonymous block
|
Eponymous block
|
Exotic block
|
Anonymous block
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
162 |
1Z0-144 |
Which of the following statements is NOT true about records?
|
|
A SELECT or FETCH statement can be used to fetch column values into a record. |
The datatype RECORD allows users to collect information about the attributes of something.
|
Records can be tested for nullity, equality, or inequality.
|
Nested record types are not supported.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
161 |
1Z0-144 |
All of the following statements are true about PL/SQL except for which one?
|
|
Users can call PL/SQL directly from the command-line SQL*Plus interface.
|
It is a case-insensitive programming language.
|
It is a purely procedural language.
|
It was developed by Oracle in the late 1980s.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
160 |
1Z0-144 |
Which of the following collection exceptions is raised when an attempt is made to use a data type that cannot
be converted to a PLS_INTEGER? |
|
SUBSCRIPT_OUTSIDE_LIMIT
|
SUBSCRIPT_BEYOND_COUNT
|
VALUE_ERROR
|
NO_DATA_FOUND
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
159 |
1Z0-144 |
What are the two new functions added by the DBMS_SQL built-in package?
|
|
TO_LOB and TO_REFCURSOR
|
TO_NCLOB and TO_TIMESTAMP
|
TO_REFCURSOR and TOCURSOR_NUMBER
|
TO_CLOB and TO_NCLOB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
158 |
1Z0-144 |
Which of the following functions can be used to explicitly assign data literals?
|
|
TO_CHAR( ) and CAST( )
|
TO_CHAR( ) and DATE( )
|
TO_CHAR( ) and TO_NCHAR()
|
TO_DATE( ) and CAST()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
157 |
1Z0-144 |
Which of the following PL/SQL functions is used to remove a set of characters from the beginning of a string?
|
|
RTRIM |
LTRIM |
RPAD |
LPAD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
156 |
1Z0-144 |
In which of the following naming methods are the connect identifiers stored in a centralized LDAP compliant
directory server including Oracle Internet Directory and Microsoft Active Directory? |
|
Oracle Names
|
Host naming
|
Local naming
|
External naming
|
Directory naming
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
SC |
|
|
155 |
1Z0-144 |
Which of the following data types is NOT available for session variables? |
|
REFCURSOR |
NUMBER |
CHAR |
VARRAY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
154 |
1Z0-144 |
Which of the following collection methods returns the lowest subscript value that is used in a collection?
|
|
LAST method
|
NEXT method
|
FIRST method
|
PRIOR method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
153 |
1Z0-144 |
Which of the following is a pattern matching operator in PL/SQL?
|
|
LIKE |
ISNULL |
IN |
BETWEEN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
152 |
1Z0-144 |
Which of the following statements is NOT true about datatype conversions?
|
|
Datatype conversion is often done explicitly in PL/SQL.
|
There are two types of datatype conversions: Implicit and Explicit.
|
CONVERT is a datatype conversion function.
|
Datatype conversion is also known as casting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
151 |
1Z0-144 |
Which of the following symbols denotes PL/SQL conditional compilation-time variable?
|
|
& |
&& |
$ |
$$ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
150 |
1Z0-144 |
Which of the following is NOT a procedure?
|
|
DBMS_RESULT_CACHE.FLUSH
|
DBMS_RESULT_CACHE.INVALIDATE
|
DBMS_RESULT_CACHE.INVALIDATE_OBJECT
|
DBMS_RESULT_CACHE.STATUS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
149 |
1Z0-144 |
Which of the following correctly represents the if-then-else conditional statement?
|
|
Multiple branching statement without fall-through
|
Single branching statement
|
Single branching statement with fall-through
|
Multiple branching statement with fall-through
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
148 |
1Z0-144 |
Which of the following is NOT a component of static explicit cursor?
|
|
Update |
Close a cursor |
Open |
Fetch from |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
147 |
1Z0-144 |
To which of the following statements does the dynamic RETURNING INTO clause belong?
|
|
DELETE |
UPDATE |
EXECUTE IMMEDIATE
|
INSERT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
146 |
1Z0-144 |
Which of the following correctly represents the name of a variable?
|
|
_a |
6a |
a$ |
a $ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
145 |
1Z0-144 |
What happens when an implicit or explicit cursor is run and no data is found?
|
|
The program terminates.
|
The implicit or explicit is re-declared.
|
An exception is raised.
|
No error is raised.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
144 |
1Z0-144 |
Which of the following statements is true about the code given below?
IF x > y THEN
high := x;
END IF; |
|
It will give a compilation error.
|
It will generate an infinite loop.
|
It will terminate the program.
|
It will execute successfully.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
143 |
1Z0-144 |
Which of the following is the return result from the SQL SELECT statement?
|
|
Iterative structure
|
Nested structure
|
Conditional structure
|
Cursor structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
142 |
1Z0-144 |
Which of the following statements is NOT true about the EXIT statement?
|
|
The EXIT statement should be placed inside a loop.
|
The EXIT statement forces a loop to complete conditionally.
|
When an EXIT statement is encountered, the loop gets completed immediately and control is passed to the
next statement. |
The RETURN statement can be used to complete a PL/SQL block before its normal end is reached.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
141 |
1Z0-144 |
Which of the following provides the data type of a previously declared user-defined record?
|
|
%ROWTYPE |
%FOUND |
%SET |
%TYPE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
140 |
1Z0-144 |
Which of the following is used to map an exception to an error code?
|
|
SQLCODE
|
EXCEPTION_INIT
|
RAISE_APPLICAT10N_ERROR function
|
PRAGMA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
139 |
1Z0-144 |
All of the following are security-related changes to DBMS_SQL, introduced in Oracle Database 11g to guard
against a program that uses DBMS_SQL and raises an exception, except for which one?
|
|
Rejection of a DBMS_SQL operation when the current user attempting to use the cursor has changed from
the user that opened the cursor |
Restriction of the use of the DBMS_SQL package whenever an invalid cursor number is passed to a
DBMSSQL program |
Generation of unpredictable, probably randomized, cursor numbers
|
Deletion of the DBMS_SQL package whenever the DBMS_SQL program encounters an error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
138 |
1Z0-144 |
All of the following are the advantages of PL/SQL except for which one?
|
|
Data sequencing
|
Error Handling
|
Better Performance
|
Procedural Language Capability
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
137 |
1Z0-144 |
Which of the following attributes is used to return the number of rows changed by a DML statement or the
number of rows returned by the SELECT INTO statement? |
|
%ISOPEN
|
%NOTFOUND
|
%ROWCOUNT
|
%FOUND
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
136 |
1Z0-144 |
Which of the following processes of the Oracle database server is used for batch processing?
|
|
Job Queue Process
|
Log Writer Process
|
Process Monitor Process
|
Database Writer Process
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
135 |
1Z0-144 |
Which of the following sections is mandatory in the anonymous block in PL/SQL?
|
|
Exception |
Declaration |
Execution |
Definition |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
134 |
1Z0-144 |
Which of the following statements is NOT true about cursor attributes?
|
|
The %ISOPEN cursor attribute is always TRUE for SQL cursors.
|
Cursor attributes return information about the execution of DML and DDL statements.
|
The value of the cursor attributes always refer to the most recently executed SQL statement.
|
The %NOTFOUND cursor attribute is not useful in combination with the SELECT INTO statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
133 |
1Z0-144 |
Which of the following methods always equals LAST for varrays?
|
|
PRIOR |
COUNT |
LIMIT |
END |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
132 |
1Z0-144 |
Which of the following is used to reference a field in a record?
|
|
field_name
|
field_name.record_name
|
record_name
|
record_name.field_name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
131 |
1Z0-144 |
What are the two composite generalized data types?
|
|
Records and BFILE
|
TIMESTAMP and CLOB
|
Records and collections
|
BLOB and CLOB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
130 |
1Z0-144 |
Which of the following are the two case statements present in PL/SQL?
|
|
Simple CASE statement and Compound CASE statement
|
Primary CASE statement and Secondary CASE statement
|
Compound CASE statement and Default CASE statement
|
Simple CASE statement and Searched CASE statement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
129 |
1Z0-144 |
Which of the following two methods are provided by Oracle for using dynamic SQL within PL/SQL?
|
|
Static SQL and DBMS_SQL package
|
Dynamic SQL and DBMS_PL/SQL package
|
Native dynamic SQL and DBMS_SQL package
|
DBMS_SQL package and DBMS_PL/SQL package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
128 |
1Z0-144 |
Which of the following is NOT a type of PL/SQL exception?
|
|
Controlled Exception
|
User-defined Exception
|
Unnamed System Exception
|
Named System Exception
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
127 |
1Z0-144 |
In which of the following categories will the EVAL_CHANGE_TRIGGER fall?
|
|
A Statement-level trigger and an AFTER trigger
|
An AFTER trigger and a BEFORE trigger
|
A Row-level trigger and a statement-level trigger
|
An INSTEAD OF trigger and a statement-level trigger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
126 |
1Z0-144 |
In which of the following clauses should a dynamic SQL statement be placed if it is a DML with input-only
placeholders? |
|
ALL_DEPENDENCIES
|
USER_DB_LINKS
|
DBA_DEPENDENCIES
|
USER_DEPENDENCIES
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
125 |
1Z0-144 |
In which of the following clauses should a dynamic SQL statement be placed if it is a DML with input-only
placeholders? |
|
INTO |
USING |
BULK COLLECT INTO |
RETURNING INTO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
124 |
1Z0-144 |
Which of the following subprograms physically writes all pending output to a file?
|
|
FSEEK |
FGETPOS |
FRENAME |
FFLUSH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
123 |
1Z0-144 |
With which of the following database operations is the triggering_event NOT associated?
|
|
STARTUP |
SHUTDOWN |
SERVERERROR |
WAIT EVENTS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
122 |
1Z0-144 |
What is the maximum size of a trigger?
|
|
64KB |
16KB |
32KB |
8KB |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
121 |
1Z0-144 |
Which of the following statements is NOT true about subprograms?
|
|
Dummy subprograms are known as stuts.
|
Subprograms allow users to extend the PL/SQL language.
|
A subprogram call has the following form: subprogram_name [ (parameter [, parameter]...)]
|
Subprograms support re-usability.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
120 |
1Z0-144 |
All of the following are PL/SQL compile-time warning categories except for which one?
|
|
INFORMATIONAL
|
PERFORMANCE
|
SEVERE
|
SIMPLE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
119 |
1Z0-144 |
Which of the following style functions is written with the help of dynamic SQL?
|
|
Theta-style function
|
Alpha-style function
|
Gamma-style function
|
Lambda-style function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
118 |
1Z0-144 |
In which of the following ways can a PL/SQL function NOT be executed?
|
|
As part of a Select statement.
|
By assigning it to a variable.
|
In a PL/SQL statement.
|
By calling it from a file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
117 |
1Z0-144 |
Which of the following statements is NOT true about dynamic SQL?
|
|
Dynamic SQL enables a user to write programs that reference SQL statements whose full text is not known
until runtime |
Dynamic SQL allows users to execute data definition language (DDL) statements and other SQL
statements that are not supported in purely static SQL programs. |
Dynamic SQL programs can handle changes in data definitions, with the need to recompile.
|
Dynamic SQL allows users to write reusable code because the SQL can be easily adapted f or different
environments. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
116 |
1Z0-144 |
Which of the following utilities is used to obfuscate the contents of a PL/SQL source file?
|
|
SQL*Loader utility
|
Import utility
|
JPublisher utility
|
Wrap utility
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
115 |
1Z0-144 |
Which of the following clauses of a trigger is used to determine the triggering event?
|
|
UPDATE |
AFTER |
INSTEAD OF |
BEFORE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
114 |
1Z0-144 |
In which of the following three categories does the PL/SQL binding operation not fall into?
|
|
in-bind
|
predefine
|
out-bind
|
define
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
113 |
1Z0-144 |
For which of the following types of triggers can the BEFORE and AFTER options NOT be used?
|
|
INSTEAD OF trigger
|
Row trigger
|
Statement trigger
|
System event trigger
|
DDL trigger
|
DML trigger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
112 |
1Z0-144 |
Which of the following triggers can be specified on a view?
|
|
BEFORE |
DEFAULT |
INSTEAD OF |
AFTER |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
111 |
1Z0-144 |
Which of the following procedures of DBMS_SQL supports bulk DML operations?
|
|
BIND_ARRAY
|
BIND_VARIABLE
|
BIND_VARIABLE_CHAR
|
BIND VARIABLE_RAW
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
110 |
1Z0-144 |
Which of the following packages is replaced by the UTL_MAIL package in Oracle 11g to allow email to be sent
from PL/SQL?
|
|
UTL_FTP |
UTL_FILE |
UTL_SMTP |
UTL_COMPRESS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
109 |
1Z0-144 |
Which of the following directives is NOT used in conditional compilation?
|
|
Error directive
|
Inquiry directive
|
Update directive
|
Selection directive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
108 |
1Z0-144 |
Which of the following datatypes makes PL/SQL code to perform better under Real Native Compilation?
|
|
NATIVE_INTEGER |
SIMPLE_ INTEGER
|
PLS_INTEGER
|
BINARY_ INTEGER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
107 |
1Z0-144 |
Which of the following events CANNOT cause a trigger to fire?
|
|
DROP |
DELETE |
INSERT |
UPDATE |
SELECT |
CREATE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
SC |
|
|
106 |
1Z0-144 |
Which of the following statements is NOT true about the BULK COLLECT clause?
|
|
The BULK COLLECT clause can be used both in server-side and client-side programs.
|
It is not possible to bulk collect into an associative array that has a string type for the key.
|
A user can combine the BULK COLLECT clause with a FORALL statement.
|
When implicit datatype conversions are needed, multiple composite targets cannot be used in the BULK
COLLECT INTO clause. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
105 |
1Z0-144 |
Which of the following components of a DML trigger determines how many times the trigger body executes?
|
|
Trigger action
|
Triggering event
|
Trigger timing
|
Trigger restriction
|
Trigger type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
SC |
|
|
104 |
1Z0-144 |
Which of the following functions returns the SQL function code for the statement?
|
|
LAST_ROW_ID
|
LAST_ERROR_POSITION
|
LAST_ROW_COUNT
|
LAST_SQL_FUNCTION_CODE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
103 |
1Z0-144 |
In which of the following can a subprogram NOT be created?
|
|
Inside a PL/SQL block
|
Inside a trigger
|
Inside a package
|
At the schema level
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
102 |
1Z0-144 |
Which of the following provides compile time code optimization?
|
|
Cross-Session PL/SQL Result Cache
|
Real Native Compilation
|
Compound trigger
|
PL/SQL Code In lining
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
101 |
1Z0-144 |
Which of the following functions returns an error code and a brief message?
|
|
SQLCODE |
SQLERRM |
SQLMSG |
SQLERROR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
100 |
1Z0-144 |
What are the components of a package? Each correct answer represents a complete solution. Choose all that
apply |
|
Header |
Specification |
Declaration |
Body |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4 |
|
MC |
|
|
99 |
1Z0-144 |
Which of the following is used to refer to the conditional compilation flags?
|
|
$$identifier syntax
|
$$operator syntax
|
$IF directive
|
$ERROR directive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
98 |
1Z0-144 |
You work as an Application Developer for Tech-Mart Inc. The company uses an Oracle database. The
database contains a table named Employees. You want to create a trigger on the Employees table. You want
the trigger to fire when an INSERT statement is issued on the table. Which of the following types of triggers will
you create on the Employees table? |
|
INSTEAD OF trigger
|
Application trigger
|
Database trigger
|
System event trigger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
97 |
1Z0-144 |
Which of the following procedures are provided by the DBMS_OUTPUT package? Each correct answer
represents a complete solution. Choose all that apply.
|
|
SLEEP |
NEW_LINE |
APPEND |
DISABLE |
ENABLE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4,5 |
|
MC |
|
|
96 |
1Z0-144 |
You work as an Application Developer for Dolliver Inc. The company uses an Oracle database. You are
required to create a trigger that restricts any database user from dropping any database object from the
database. What will you do to accomplish the task?
|
|
Create a DDL trigger on the database level.
|
Create a DDL trigger on the schema level.
|
Create an INSTEAD OF trigger on the database level.
|
Create a DML trigger on the database level.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
95 |
1Z0-144 |
Which of the following literals are used to specify the period of time?
|
|
Interval literals
|
Numeric literals
|
Integer literals
|
Character literals
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
94 |
1Z0-144 |
You work as an Application Developer for Tech-Mart Inc. The company uses an Oracle database. The
database contains a table named Employees. You want to create a database trigger on the Employees table.
You execute the CREATE TRIGGER statement to accomplish the task. During the compilation of the trigger,
an error occurs. You want to see the error. What will you do to accomplish this? Each correct answer
represents a complete solution.
Choose two. |
|
Use the SHOW ERRORS statement in SQL*Plus or Enterprise Manager.
|
Query the USER_ERRORS data dictionary view.
|
Query the TRIGGER_ERRORS data dictionary view.
|
Query the USER_TRIGGERS data dictionary view.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2 |
|
MC |
|
|
93 |
1Z0-144 |
SET ROLE is an example of which of the following SQL statements?
|
|
System control statement
|
Transaction control statement
|
Embedded SQL statement
|
Session control statement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
92 |
1Z0-144 |
Which of the following services is a collection of a pre-defined Web-based units for performing directory
operations on behalf of a user? |
|
Oracle Delegated Administration Services
|
Oracle Net Services
|
Oracle WebCenter Services
|
Oracle Database Support Services
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
91 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. The company uses an Oracle database. The database
contains a table named Departments. You have defined four triggers for the Departments table. Currently, the
triggers defined for the table are disabled. You want to enable them by executing a single SQL statement.
Which of the following SQL statements will you use to accomplish this? |
|
ALTER Departments ENABLE ALL TRIGGERS;
|
ENABLE ALL TRIGGERS ON Departments;
|
You cannot simultaneously enable all the triggers defined for the table.
|
ALTER TABLE Departments ENABLE ALL TRIGGERS; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
90 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. |
90-queplsql.png |
It is an application trigger.
|
It is a DDL trigger.
|
It is an invalid trigger.
|
It is a system event trigger.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
89 |
1Z0-144 |
Which of the following requires an explicit cursor to process more than one row in PL/SQL?
|
|
SELECT |
INSERT |
UPDATE |
DELETE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
88 |
1Z0-144 |
You work as an Application Developer for Dolliver Inc. The company uses an Oracle database. You own
subprograms that reference to other subprograms on remote locations. Oracle server uses the signature mode
of remote dependency in order to manage remote dependencies among the subprograms. Which of the
following statements about the signature mode of remote dependency are true? Each correct answer
represents a complete solution. Choose two.
|
|
Signature mode is the default mode of remote dependency.
|
Oracle server records only the signature for each PL/SQL program unit.
|
Oracle server records both the timestamp and the signature for each PL/SQL program unit.
|
Using the signature mode prevents the unnecessary recompilation of dependent local procedures, as it
allows remote procedures to be recompiled without affecting the dependent local procedures. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
87 |
1Z0-144 |
You work as a Database Administrator for Dolliver Inc. The company uses Oracle as its database. A user has
remotely logged in and connected to the database, as s/he is externally authenticated. Which of the following
actions will you take in order to prevent the user from connecting to the database by just logging in from any
remote machine?
|
|
Set the REMOTE_LOGIN_PASSWORDFILE parameter to NONE.
|
Set the REMOTE_LOGIN_PASSWORDFILE parameter to EXCLUSIVE.
|
Set the REMOTE_DEPENDENCIES_MODE parameter to FALSE.
|
Set the REMOTE_OS_AUTHENT parameter to FALSE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
86 |
1Z0-144 |
Which of the following procedures of the UTL_FILE package is used to write a line to a file, and appends an
OS-specific line terminator?
|
|
PUTF |
PUT_LINE |
FFLUSH |
PUT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
85 |
1Z0-144 |
You have created a cursor named emp_cur to retrieve the names of those employees whose salary is greater than 10,000. |
85-queplsql.png |
FOR emp_rec IN emp_cur OPEN emp_cur
LOOP
DBMS_OUTPUT.PUT_LINE (emp_rec.emp_name || " || emp_rec.salary); END LOOP;
CLOSE emp_cur |
FOR emp_rec IN emp_cur
LOOP
DBMS_OUTPUT.PUT_LINE (emp_rec.emp_name || " || emp_rec.salary); END LOOP; |
FOR emp_cur IN emp_rec
LOOP
DBMS_OUTPUT.PUT_LINE (emp_rec.emp_name || " || emp_rec.salary) END LOOP; |
FOR emp_rec IN emp_cur
LOOP
DBMS_OUTPUT.PUT_LINE (emp_cur.emp_name || " || emp_cur.salary); END LOOP; |
LOOP FOR emp_rec IN emp_cur
DBMS_OUTPUT.PUT_LINE (emp_rec.emp_name || " || emp_rec.salary); END LOOP; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
84 |
1Z0-144 |
Which of the following Oracle supplied packages is used to access data on the Internet from SQL and PL/SQL?
|
|
DBMS_JOB
|
UTL_HTTP
|
DBMS_OUTPUT
|
UTL_FILE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
83 |
1Z0-144 |
Which of the following clauses is used to specify the variables in which to store the values returned by the
statement to which the clause belongs? |
|
INSERT INTO
|
INTO |
RETURNING INTO
|
COLLECT INTO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
82 |
1Z0-144 |
Which of the following variables is the key to communication between the host program and Oracle?
|
|
Cursor variable
|
Indicator variable
|
Pointer variable
|
Host variable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
81 |
1Z0-144 |
Which of the following types of exception is raised when the host cursor variable and PL/SQL cursor variable
involved in an assignment have incompatible return types?
|
|
PROGRAM_ERROR
|
NO_DATA_FOUND
|
ROWTYPE_MISMATCH |
SELF_IS_NULL |
STORAGE_ ERROR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
80 |
1Z0-144 |
Which of the following statements about subprograms are true? Each correct answer represents a complete
solution. Choose all that apply.
|
|
Subprograms are named PL/SQL blocks that can accept parameters and be invoked.
|
Subprograms can be called from other procedures and triggers.
|
Subprograms can be stored only at the server level.
|
Subprograms provide easy maintenance, improved data security and code clarity, and enhanced
performance. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,4 |
|
MC |
|
|
79 |
1Z0-144 |
Which of the following subprograms of DBMS_LOCK package are NOT procedures? Each correct answer
represents a complete solution. Choose all that apply.
|
|
REQUEST |
CONVERT |
ALLOCATE_UNIQUE
|
RELEASE |
SLEEP |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,4 |
|
MC |
|
|
78 |
1Z0-144 |
Samantha designs a database for Oliver Inc. She wants to retrieve the text associated with the current
exception. Which of the following functions will she use?
|
|
ERRORTEXT
|
ERRTEXT
|
SQLERRMSG |
SQLERRM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
77 |
1Z0-144 |
Which of the following statements is true about implicit cursors?
|
|
Every implicit cursor has four attributes that can be used to access information about the execution of a
multi-row query. |
Implicit cursors are declared implicitly for all the DML and SELECT statements.
|
You can implicitly declare a cursor to process rows.
|
In implicit cursors, you can use the OPEN, FETCH, and CLOSE statements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
76 |
1Z0-144 |
Which of the following are valid cursor attributes? Each correct answer represents a complete solution. Choose
all that apply. |
|
%OPEN
|
%NOTFOUND
|
%FOUND
|
%NOTOPEN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,3 |
|
MC |
|
|
75 |
1Z0-144 |
You want to retrieve the complete database object definitions from the data dictionary. Which of the following
packages will you use to get the required result? |
|
DBMS_ASSERT
|
DBMS_METADATA
|
DBMS_HPROF
|
DBMS_RESOURCE_MANAGER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SC |
|
|
74 |
1Z0-144 |
Which of the following is NOT an advantage of a stored procedure?
|
|
A stored procedure helps to enhance development productivity.
|
A stored procedure helps to maintain data consistency in the database.
|
A stored procedure helps to enforce data integrity.
|
A stored procedure improves the integrity and consistency of applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
73 |
1Z0-144 |
Martin writes a PL/SQL WHILE...LOOP to display values from a database. In which of the following events will
the loop be terminated? |
|
When the condition associated with the loop evaluates to TRUE.
|
When the condition associated with the loop evaluates to NULL.
|
When the condition associated with the loop evaluates to FALSE.
|
When a specified number of iterations are performed.
|
When the execution control is passed to the EXIT statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
72 |
1Z0-144 |
You have created a PL/SQL block. Now, you want to embed it in a Pro*C/C program. Which of the following will
you use to accomplish the specified task? |
|
EXEC SQL EXECUTE DECLARE .... BEGIN .... END-EXEC; END;
|
EXEC SQL EXECUTE DECLARE .... BEGIN .... END; END-EXEC;
|
EXEC SQL EXECUTE DECLARE .... BEGIN .... END; END-EXEC
|
EXEC SQL EXECUTE .... DECLARE .... BEGIN END; EXEC-END;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
71 |
1Z0-144 |
Which of the following methods will you use to find the maximum size of a collection?
|
|
LIMIT |
EXITS |
COUNT |
LAST |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
70 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. |
70-queplsql.png |
It inserts new records in the V_Emp view when an INSERT operation is performed on the V_Emp view.
|
It inserts new records in the Employees table when an INSERT operation is performed on the V_Emp view.
|
It fails and returns an error when an INSERT operation is performed on the V_Emp view.
|
It updates the records in the Employees table with the new records inserted in the V_Emp view.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
69 |
1Z0-144 |
Which of the following CANNOT be compared with the BFILE? Each correct answer represents a complete
solution. Choose all that apply. |
|
CLOB |
BLOB |
NCLOB |
BFILE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,3 |
|
MC |
|
|
68 |
1Z0-144 |
Which of the following are the valid requirements for a user-defined function to be called from a SQL
expression? Each correct answer represents a complete solution. Choose all that apply. |
|
Parameters of the function must be in the OUT or IN OUT parameter mode.
|
Parameters of the function must use the named notation method.
|
The function cannot contain statements that end the transaction.
|
If the function is being called from a SELECT statement, the function cannot contain DML statements.
|
Parameters of the function and the values returned by the function must be PL/SQL- specific datatypes.
|
The function must be a stored function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4,6 |
|
MC |
|
|
67 |
1Z0-144 |
Which of the following identifiers are declared globally?
|
|
Reserve words identifiers
|
Predefined identifiers
|
Default identifiers
|
Quoted identifiers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
66 |
1Z0-144 |
Mark works as an Application Developer for Tech-Mart Inc. |
66-queplsql.png |
It will execute successfully and the procedure will be created.
|
It will return an error because the %TYPE attribute cannot be used in a procedure to declare parameters.
|
It will return an error because the RETURN clause cannot be used in a procedure declaration.
|
It will return an error because the IN parameter mode has not been specified for all the parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
65 |
1Z0-144 |
Which of the following statements is true about the pragma EXCEPTIONJNIT?
|
|
It declares an exception.
|
It associates an exception name with an Oracle error code.
|
It creates an exception.
|
It removes an exception.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
64 |
1Z0-144 |
You work as a Database Administrator for Tech-Mart Inc. The company uses an Oracle database. Andrew is an
employee in the company. He owns a table named Customers. He is required to create a procedure named
Add_Customer that will be used to add new customers to the Customers table. You grant the CREATE ANY
PROCEDURE system privilege to Andrew so that he is able to create the procedure. You also want to ensure
that Andrew is capable of executing the Add_Customer procedure as well as other procedures in the database.
Which other privilege will you grant to Andrew? |
|
EXECUTE object privilege
|
RUN ANY PROCEDURE system privilege
|
Andrew does not need any additional privilege. |
EXECUTE ANY PROCEDURE system privilege
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
63 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. The company uses an Oracle database. You want to
write a PL/SQL program by using dynamic SQL. Which of the following Oracle supplied packages will you use
to accomplish this?
|
|
DBMS_JOB |
DBMS_DDL |
DBMS_SQL |
DBMS_PIPE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
62 |
1Z0-144 |
Under which of the following conditions is the use of an explicit cursor necessary?
|
|
When a query returns more than one row
|
When a query does not return any row
|
When a query returns only one row
|
When any SQL data manipulation language (DML) statement is used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
61 |
1Z0-144 |
What are the two kinds of numeric literals? Each correct answer represents a complete solution. Choose two. |
|
Real |
Numeric |
Binary |
Integer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,4 |
|
MC |
|
|
60 |
1Z0-144 |
Which of the following is NOT an advantage of a cursor variable?
|
|
Ensures data availability
|
Convenient security
|
Ease of maintenance
|
Encapsulation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
59 |
1Z0-144 |
Which of the following PL/SQL built-in functions is used to return an ASCII encoding string for a Character?
|
|
CONCAT |
ASCIISTR |
ASCII |
CHR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
58 |
1Z0-144 |
What are the different modes of parameters that can be used in functions and procedures? Each correct
answer represents a complete solution. Choose all that apply. |
|
IN OUT |
OUT |
IN |
OUT IN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,3 |
|
MC |
|
|
57 |
1Z0-144 |
Which of the following statements about dependencies among objects are true? Each correct answer
represents a complete solution. Choose all that apply. |
|
The status of a schema object can be viewed by querying the USER_STATUS data dictionar y view.
|
Objects having an invalid status can be described by the DESCRIBE command.
|
Oracle server automatically records dependencies among objects.
|
All schema objects have a status that is recorded in the data dictionary. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
56 |
1Z0-144 |
You work as an Application Developer for Z-Tech Inc. The company uses an Oracle database. The database
contains a table named Employees. You have defined a database trigger named Raise_Salary on the
Employees table. You want to remove the trigger from the database. Which of the following SQL statements
will you use to accomplish this?
|
|
DELETE TRIGGER Raise_Salary;
|
DROP TRIGGER Raise_Salary;
|
REMOVE TRIGGER Raise_Salary;
|
ALTER TRIGGER Raise_Salary REMOVE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
55 |
1Z0-144 |
Which of the following stored programs of Oracle is used to compute a value and returns a value to a calling
environment? |
|
Package |
Trigger |
Function |
Procedure |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
54 |
1Z0-144 |
Which of the following is used for parsing PL/SQL compilation units and performing their semantic and
syntactic validation? |
|
PL/SQL Virtual Machine (PVM)
|
PL/SQL compiler back-end
|
PL/SQL wrappers
|
PL/SQL compiler-front end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
53 |
1Z0-144 |
What are the two methods through which a value can be assigned to a variable? Each correct answer
represents a complete solution. Choose all that apply. |
|
By using the Default statement.
|
By using the SQL SELECT INTO or FETCH INTO statement.
|
By using the command line argument.
|
By using the assignment operator (:=).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4 |
|
MC |
|
|
52 |
1Z0-144 |
Which of the following statements is NOT true about PL/SQL?
|
|
The features of PL/SQL programming are fetched from the Ada programming.
|
The PL/SQL run-time engine exists as a resource inside the SQL environment.
|
PL/SQL is a robust tool with many options.
|
PL/SQL is a case-insensitive programming language like SQL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
51 |
1Z0-144 |
What are the different categories of PL/SQL program units? Each correct answer represents a complete
solution. Choose all that apply.
|
|
Unnamed |
Primary |
Named |
Default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
50 |
1Z0-144 |
Which of the following is NOT a procedure in the UTL_MAIL package?
|
|
SEND_ATTACH_RAW |
SEND_MAIL |
SEND_ATTACH_VARCHAR2 |
SEND |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
49 |
1Z0-144 |
Which of the following statements are true about the DBMS_OUTPUT.PUT and DBMS_OUTPUT.PUTLINE
procedures? Each correct answer represents a complete solution.
Choose all that apply. |
|
The DBMS_OUTPUT.PUT_LINE procedure is used to assign a line in the buffer.
|
The DBMS_OUTPUT.PUT procedure is used to assign a partial line in the buffer.
|
The DBMS_OUTPUT.PUT procedure is followed by an end-of-line marker.
|
The DBMS_OUTPUT.PUT_LINE procedure is not followed by an end-of-line marker.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2 |
|
MC |
|
|
48 |
1Z0-144 |
Which of the following files is used to record the physical structure of a database and to define its current state?
|
|
Default file |
Data file |
Redo log file |
Control file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
47 |
1Z0-144 |
Which of the following statements are true about dynamic SQL? Each correct answer represents a complete
solution. Choose all that apply. |
|
Native dynamic SQL allows placing dynamic SQL statements directly into PL/SQL code. |
The EXECUTE IMMEDIATE statement can process dynamic single-row queries.
|
Dynamic SQL allows executing Data Definition Language (DDL) statements and other SQL statements that
are not supported in purely static SQL programs. |
Dynamic SQL enables writing programs that reference SQL statements whose full text is not known until
runtime. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,3,4 |
|
MC |
|
|
46 |
1Z0-144 |
Which of the following functions is used by users to add a character one or more times at the beginning of a
string? |
|
REPLACE |
LTRIM |
CONVERT |
LPAD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
45 |
1Z0-144 |
Which of the following statements are true about a strong REF CURSOR variable? Each correct answer
represents a complete solution. Choose all that apply. |
|
It can relate to any query.
|
It is less susceptible to errors.
|
It is more flexible as compared to a weak REF CURSOR variable.
|
It has a return type.
|
It is also known as restrictive REF CURSOR variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4,5 |
|
MC |
|
|
44 |
1Z0-144 |
Which of the following is an Oracle Database facility that keeps a list of references?
|
|
Resolver |
profiler |
Listener |
Compiler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
43 |
1Z0-144 |
You work as an Application Developer for Dolliver Inc. |
43-queplsql.png |
The statement will fail because the NEW qualifier cannot be prefixed with a colon (:).
|
The statement will fail because the NEW qualifier cannot be used in a statement trigger.
|
The trigger will be created successfully.
|
The statement will fail because the NEW qualifier cannot be used in an AFTER trigger.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
42 |
1Z0-144 |
Consider the following declaration of collection: |
42-queplsql.png |
TRM |
DELETE(5) |
DELETE(1,5) |
DELETE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3,4 |
|
MC |
|
|
41 |
1Z0-144 |
Which of the following programming constructs can be grouped within a package? Each correct answer
represents a complete solution. Choose all that apply. |
|
Sequence
|
Constant
|
Cursor |
Trigger |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,3 |
|
MC |
|
|
40 |
1Z0-144 |
Which of the following statements is NOT true about parameters in cursor?
|
|
Default values can be assigned to Cursor parameters.
|
The scope of the cursor parameters is global to the cursor.
|
The mode of parameters can only be IN.
|
Cursor becomes more reusable with the Cursor parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
39 |
1Z0-144 |
You work as a Database Administrator for TechMart Inc. The company has a server in which Oracle 11g
database is installed. You tried to execute a stored procedure that had cursor variables as parameters. But the
server generated the following error:
ORA-06514: PL/SQL: The remote call cannot be handled by the server
What action should you take to resolve this Oracle error? Each correct answer represents a complete solution.
Choose all that apply.
|
|
Try to avoid using cursor variables as parameters for stored procedures.
|
Reinstall the server.
|
Upgrade your server to support cursor variables as parameters for stored procedures.
|
Drop the stored procedure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
38 |
1Z0-144 |
Which of the following clauses allows users to update or delete the record that was last fetched by the cursor?
|
|
FOR UPDATE |
INTO |
WHERE CURRENT OF |
DISTINCT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
37 |
1Z0-144 |
You want to call a PL/SQL user-defined function from within the SQL expression. Which of the following
clauses can you use to do so? Each correct answer represents a complete solution.
Choose all that apply.
|
|
WHERE |
ORDER BY |
FROM |
SELECT |
GROUP BY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,4,5 |
|
MC |
|
|
36 |
1Z0-144 |
Which of the following are the advantages of SQL*Plus? Each correct answer represents a complete solution.
Choose all that apply.
|
|
Performing database administration.
|
Sending messages to, and accepting responses from, an end user.
|
Listing column definitions for any table access, and copying data between SQL databases.
|
Deleting or removing invalid data from the columns of a table in any particular database.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,3 |
|
MC |
|
|
35 |
1Z0-144 |
In which of the following circumstances should a trigger be created? Each correct answer represents a
complete solution. Choose two. |
|
To ensure that when a specific operation is performed, related actions are performed.
|
To duplicate the functionality of other triggers.
|
To perform centralized, global operations that should be fired for the triggering statement, regardless of
which user or database application issues the statement. |
To duplicate the functionality of built-in constraints in Oracle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
34 |
1Z0-144 |
Which of the following system privileges should you have to create or replace a function in your own schema?
|
|
CREATE ANY PROCEDURE
|
CREATE FUNCTION
|
CREATE PROCEDURE
|
CREATE PACKAGE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
33 |
1Z0-144 |
Which of the following literals is used to store year, month, day, hour, minute, and fractional second values?
|
|
TIMESTAMP
|
TIMESTAMP WITH LOCAL TIME ZONE
|
DATE |
TIMESTAMP WITH TIME ZONE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
32 |
1Z0-144 |
Which of the following cursor attributes is invalid?
|
|
%FOUND
|
%ROWCOUNT
|
%NOTOPEN
|
%ISOPEN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
31 |
1Z0-144 |
Consider the following declaration of collection: |
31-queplsql.png |
DELETE(1,5) |
DELETE(1) |
TRIM |
DELETE |
TRIM(5) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
30 |
1Z0-144 |
Which of the following is NOT a database trigger?
|
|
BEFORE trigger
|
FORM trigger
|
AFTER trigger
|
INSTEAD OF trigger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
29 |
1Z0-144 |
Which of the following statements are TRUE about the EXTEND method? Each correct answer represents a
complete solution. Choose all that apply.
|
|
It is used to increase the size of the index-by tables.
|
It is used to increase the size of the nested tables.
|
It cannot append elements to a collection that is not initialized.
|
It can append only a single null element to the collection.
|
It can append multiple copies of a particular element.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,3,5 |
|
MC |
|
|
28 |
1Z0-144 |
What happens if an exception is raised in the program, and that exception is not handled by an exception
section in either the current or enclosing PL/SQL blocks?
|
|
Nothing will happen; the program will execute successfully.
|
The program will return an error.
|
The program will generate an output.
|
The program will pause for a moment and then resume its execution.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
27 |
1Z0-144 |
You work as an Application Developer for Dolliver Inc. The company uses an Oracle database. The database
contains two tables named Orders and Audit_Records. You are required to create a trigger that monitors every
modified row of the Orders table and stores the information about the modified rows in the Audit_Records table.
What will you do to accomplish this?
|
|
Create a statement trigger on the Audit_Records table.
|
Create a statement trigger on the Orders table.
|
Create a row trigger on the Audit_Records table.
|
Create a row trigger on the Orders table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
26 |
1Z0-144 |
Which of the following Oracle supplied packages provides the capability to perform I/O operations on a text file?
|
|
UTL_HTTP |
DBMS_DDL |
DBMS_JOB |
UTL_FILE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
25 |
1Z0-144 |
Which of the following is NOT an advantage of a package?
|
|
Stored packages allow users to encapsulate or group stored procedures, datatypes, variables, etc. in a
single named, stored unit in the database. |
The methods of package definition allow users to specify which variables, cursors, and procedures are
private and public |
Packages implement data consistency.
|
Packages provide better performance.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
24 |
1Z0-144 |
You work as an Application Developer for Federal Inc. |
24-queplsql.png |
You cannot invoke the procedure from SQL*Plus.
|
Use the EXECUTE statement.
|
Use the RUN statement. |
Use an anonymous PL/SQL block.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,4 |
|
MC |
|
|
23 |
1Z0-144 |
Which of the following PL/SQL packages is used to support the SQL plan management feature?
|
|
UTL_MAIL
|
Utl_Com press
|
DBMS_Warning
|
DBMS_SPM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
22 |
1Z0-144 |
You work as an Application Developer for Blue-Well Inc. |
22-queplsql.png |
Update_Sal
|
Update_Emp
|
Calc_Tax
|
lnsert_Emp
|
Delete_Emp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
21 |
1Z0-144 |
Which of the following packages will you use to obtain information about the PL/SQL objects?
|
|
DBMS_STATS |
DBMS_UTILITY |
DBMS_DESCRIBE |
DBMS_METADATA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
20 |
1Z0-144 |
Martha designs a database for Oliver Inc. She wants to retrieve the error number for the current exception.
Which of the following functions will she use?
|
|
SQLNUM |
SQLCODE |
ERRORNUM |
SQLERRM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
19 |
1Z0-144 |
Which of the following statements are true about the DBMSOUTPUT.ENABLE procedure? Each correct
answer represents a complete solution. Choose all that apply.
|
|
The minimum and maximum values of the buffer_size that the user can specify are 20,000 and 1,000,000
respectively. |
The calls to the DBMS_OUTPUT.PUT, DBMS_OUTPUT.PUT_LINE, DBMS_OUTPUT.NEWLINE,
DBMS_OUTPUT.GET_LINE and DBMS_OUTPUT.GET_LINES procedures are acknowledged only when
the DBMS_OUTPUT is activated. |
It is not necessary to call DBMS_OUTPUT.ENABLE procedure when a user uses the SET
SERVEROUTPUT option of SQL*Plus. |
When the DBMS_OUTPUT. ENABLE procedure is called more than once, the buffer_size is set to the value
passed in the first call. |
When the DBMSOUTPUT. ENABLE procedure is called and the buffer_size is set to NULL, the buffer_size
takes 20,000 as its default value. |
The minimum and maximum values of the buffer_size that the user can specify are 2,000 and1,000,000
respectively. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2,3,5,6 |
|
MC |
|
|
18 |
1Z0-144 |
Which of the following procedures of the DBMS_OUTPUT package has two overloaded forms?
|
|
DBMS_OUTPUT.PUT_LINE
|
DBMS_OUTPUT.PUT
|
DBMS_OUTPUT.GET_LINES
|
DBMS_OUTPUT.GET_LINE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
17 |
1Z0-144 |
Which of the following statements can be used to create a package? Each correct answer represents a part of
the solution. Choose two. |
|
CREATE PACKAGE
|
CREATE BODY/SPECIFICATION
|
CREATE PACKAGE SPECIFICATION
|
CREATE PACKAGE BODY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,4 |
|
MC |
|
|
16 |
1Z0-144 |
You work as an Application Developer for Gentech Inc. The company uses an Oracle database. The database
contains a table named Employees. You are required to create a procedure named Add_Emp that will be used
to insert new records in the Employees table. What precautions will you take while creating the procedure in
order to minimize the dependency failure in case the Employees table undergoes any change? Each correct
answer represents a complete solution. Choose all that apply.
|
|
Declare variables by using the %TYPE attribute.
|
Include a column list with the INSERT statement.
|
Specify schema names when referencing objects in the procedure.
|
Use the SELECT *notation when performing queries through the procedure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,4 |
|
MC |
|
|
15 |
1Z0-144 |
Which of the following PL/SQL functions is used to find the position where a substring starts in a string?
|
|
LENGTH |
INSTR |
CONCAT |
INITCAP |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
14 |
1Z0-144 |
Martha works as a Database Administrator for MarcoTech Inc. She writes the following PL/SQL block: |
14-queplsql.png |
1 |
8 |
0 |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
13 |
1Z0-144 |
Andrew works as an Application Developer for Federal Inc. The company uses an Oracledatabase. The
database contains a table named Orders. Andrew is required to create a database trigger on the Orders table.
He executes the CREATE TRIGGER statement to accomplish this. However, during the compilation of the
trigger, an error occurs. Which of the following statements regarding the creation of the trigger are true? Each
correct answer represents a complete solution. Choose two. |
|
The trigger will be created. However, it will need to be recompiled after the compilation error is rectified. |
The trigger will not be created unless the compilation error is rectified.
|
The trigger will be created, and it will be fired successfully by DML statements.
|
The trigger will be created. However, when a DML statement fires the trigger, the DML statement will fail.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,4 |
|
MC |
|
|
12 |
1Z0-144 |
Which of the following are the features of a cursor FOR loop? Each correct answer represents a complete
solution. Choose all that apply.
|
|
The cursor gets closed automatically when a user leaves the loop.
|
Cursor FOR loop requires the record type declaration.
|
Before each iteration of the FOR loop, PL/SQL fetches into the implicitly declared record.
|
Cursor FOR loop fetches records from the cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2,3,4 |
|
MC |
|
|
11 |
1Z0-144 |
You work as a Database Administrator for uCertify Inc. The company uses Oracle 11g database. You want to
create indexes for a set of tables in the marketing department. A table named SALES contains the sale_id and
the cust_name columns. Your manager asks you to create an index on the mentioned columns. In order to
accomplish the task, you want to estimate how much space the proposed index would need. Which of the
following packages will you use to estimate the required space?
|
|
DBMS_SPACE
|
DBMS_REPAIR
|
DBMS_SQL
|
DBMS_STATS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
10 |
1Z0-144 |
In which of the following sections of a PL/SQL blocks can a variable be defined? |
|
Error handling section
|
Exception section
|
Execution section
|
Declaration section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
9 |
1Z0-144 |
What are the different ways in which PL/SQL can run? Each correct answer represents a complete solution.
Choose all that apply.
|
|
Interpreted execution
|
Native execution
|
Default execution
|
Integrated execution
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,2 |
|
MC |
|
|
8 |
1Z0-144 |
In PL/SQL, there are two kinds of subtypes, which are as follows: |
08-queplsql.png |
The constrained subtypes limit the range of the values that are held by their base types.
|
Both the constrained and unconstrained subtypes are an aliased form of their base type.
|
The unconstrained subtypes do not limit the range of the values that are held by their base types.
|
The constrained subtypes are an aliased form of their base type.
|
The unconstrained subtypes are an aliased form of their base type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3,5 |
|
MC |
|
|
7 |
1Z0-144 |
Which of the following statements is true about the cursor FOR loop? |
|
Parameters cannot be passed to a cursor in a cursor FOR loop.
|
A cursor does not need to explicitly use the OPEN, FETCH, and CLOSE statements within a cursor FOR
loop. |
A cursor needs to explicitly use the OPEN, FETCH, and CLOSE statements within a cursor FOR loop.
|
A cursor variable cannot be opened for a type-compatible query in a cursor FOR loop.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
6 |
1Z0-144 |
The following steps are taken to create a PL/SQL anonymous block and display the output: |
06-queplsql.png |
2,5,1,3,4
|
B. 2,1,5,3,4
|
2,5,1,4,3
|
2,1,5,4,3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|
5 |
1Z0-144 |
Which of the following functions is used to update or insert a reference to an externally stored binary large
object?
|
|
BFILENAME
|
DUMP
|
COALESCE
|
DECODE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
SC |
|
|
4 |
1Z0-144 |
Which of the following packages will you use when you want an application to be notified whenever the values
of interest in the database are changed? |
|
DBMS_ HPROF |
DBMS_ALERT
|
DBMS_LOCK
|
DBMS_ASSERT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
SC |
|
|
3 |
1Z0-144 |
Which of the following evaluates to TRUE when an unsuccessful fetch occurs?
|
|
%ROWCOUNT
|
%ISOPEN
|
%FOUND
|
%NOTFOUND
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
SC |
|
|
2 |
1Z0-144 |
You work as an Application Developer for Tech-Mart Inc. The company uses an Oracle database. The
database contains a function named Calc_Sal. You want to make some changes in the executable part of the
function. What will you do to accomplish this? Each correct answer represents a complete solution. Choose
two. |
|
Drop the function and create a new one.
|
Use the MODIFY FUNCTION statement.
|
Use the CREATE OR REPLACE FUNCTION statement.
|
Use the ALTER FUNCTION statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,3 |
|
MC |
|
|
1 |
1Z0-144 |
Anonymous blocks are used when building scripts to seed data or perform one-time processing activities. In
which of the following sections of the anonymous-block of PL/SQL can anonymousblock programs be nested? |
|
Exception
|
Declaration
|
Execution
|
Definition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
SC |
|
|